package test;

/**
 * 电影
 */
public class Movie {

    /**
     * 儿童片
     */
    public static final int CODE_CHILDRENS = 2;
    /**
     * 普通片
     */
    public static final int CODE_REGULAR = 0;
    /**
     * 新片
     */
    public static final int CODE_NEW = 1;

    /**
     * 片名
     */
    private String title;
    /**
     * 价格码：取值为
     * {@link test.Movie#CODE_CHILDRENS}
     * {@link test.Movie#CODE_REGULAR}
     * {@link test.Movie#CODE_NEW}
     */
    private int priceCode;

    public Movie(String title, int priceCode) {
        this.title = title;
        this.priceCode = priceCode;
    }

    public String getTitle() {
        return title;
    }

    public int getPriceCode() {
        return priceCode;
    }
}
